<?php
$f_name = $_POST['first-name'];
$l_name = $_POST['last-name'];
$u_name = $_POST['user-name'];
$e_mail = $_POST['e-mail'];
$u_password = $_POST['password'];
$c_password = $_POST['confirm-password'];
include 'dbconnection.php';
$query = "Insert INTO users (user_name,user_password,email,f_name,l_name)VALUES ('$u_name','$u_password','$e_mail','$f_name','$l_name')";
if (!$result = mysql_query($query)) {
    die("<div id='inner_main'><div class='alert alert-error'>
    <button type='button' class='close' data-dismiss='alert'>&times;
    </button>
    <h4>Insert Error!</h4>
    Could not execute query<br/>" . mysql_error() . "
    </div></div >");
}
include 'dbconnectionclose.php';
?>
